{include file="public/header" select="0" /}
<style>
    .active > a {
        font-weight: bold;
        font-size: 15px;
    }
</style>
<body>
<div class="title bgc">
    <i class="layui-icon layui-icon-left" onclick="load_href('{:url(\'user/index\')}',2)"></i>
    安全中心
</div>
<ul class="order-title">
    <li class="{if $Request.param.type == 'password'}active{/if}">
        <a href="{:url('security/index',['type'=>'password'])}">修改登录密码</a>
    </li>
    <li class="{if $Request.param.type == 'pay_password'}active{/if}">
        <a href="{:url('security/index',['type'=>'pay_password'])}">修改支付密码</a>
    </li>

</ul>
<form action="{:url('security/save')}" method="post" class="form layui-form">
    <input type="hidden" name="type" value="{$Request.param.type}">
    <ul class="set-form bgc">
        <li>
            旧密码 <input type="password" name="old_password" lay-verify="required" lay-reqtext="请输入旧密码" lay-verType="tips"
                       placeholder="请输入旧密码">
        </li>
        <li>
            新密码 <input type="password" name="password" lay-verify="required" lay-reqtext="请输入新密码" lay-verType="tips"
                       placeholder="请输入新密码">
        </li>
        <li>
            确认密码 <input type="password" name="password_confirm" lay-verify="required" lay-reqtext="请确认新密码" lay-verType="tips"
                        placeholder="请确认新密码">
        </li>
    </ul>
    <div class="pay-btn" lay-submit lay-filter="save" formObj=".form"><a>提交</a></div>
</form>
</body>
{include file="public/footer" select="0" /}